home *** CD-ROM | disk | FTP | other *** search
- Path: yfn.ysu.edu!bi287
- From: bi287@yfn.ysu.edu (Brian T. Richardson)
- Newsgroups: comp.lang.c
- Subject: printf problems..
- Date: 17 Apr 1996 05:08:02 GMT
- Organization: St. Elizabeth Hospital, Youngstown, OH
- Message-ID: <4l1ubi$c3p@news.ysu.edu>
- Reply-To: bi287@yfn.ysu.edu (Brian T. Richardson)
- NNTP-Posting-Host: yfn2.ysu.edu
-
-
- I feel really stupid, but I cannot make printf add zeros
- before a floating point number..
-
- I want it to output '02.11' not '2.11'
-
- I tried something like printf(temp, "%O2.2f", myvar)
- and other varations and nothing has worked for
- me, I know I'm missing something really obvious..
-
- brian, "Born Again Christian Street Gangs hold up people and force them to
- say the lords prayer at gunpoint!" - The Globe
-
-
- --
-
-